import { ecs } from "./core/ecs/ECS";
import { CommonUtil } from "./module/common/CommonUtil";
import { dev } from "./module/config/Config";
import { RoomServer } from "./server/room/RoomServer";
import { RoomServerRootSystem } from "./server/room/sys/RoomServerRootSystem";

/** 房间服务器对象 */
export var rs: RoomServer = null!

function main() {
    dev();

    CommonUtil.init(new RoomServerRootSystem());

    rs = ecs.getEntity<RoomServer>(RoomServer);
    rs.start()
}

main();